
<!DOCTYPE html>
<html lang='zh-cn'>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>我的地盘-修改密码 - 禅道</title>
    <script>window.config={"webRoot":"\/zentao\/","debug":false,"appName":"","cookieLife":30,"requestType":"PATH_INFO","requestFix":"-","moduleVar":"m","methodVar":"f","viewVar":"t","defaultView":"html","themeRoot":"\/zentao\/theme\/","currentModule":"my","currentMethod":"changepassword","clientLang":"zh-cn","requiredFields":"","router":"\/zentao\/index.php","save":"\u4fdd\u5b58","runMode":"","timeout":30000,"pingInterval":""};
    window.lang={"submitting":"\u7a0d\u5019...","save":"\u4fdd\u5b58","expand":"\u5c55\u5f00\u5168\u90e8","timeout":"\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\uff0c\u6216\u91cd\u8bd5\uff01"};

    </script>
    <script>config.onlybody = "no";</script><link rel='stylesheet' href='/zentao/theme/default/zh-cn.default.css?v=12.5.3' type='text/css' media='screen' />
    <script src='/zentao/js/all.js?v=12.5.3'></script>
    <style>.dropdown-menu.with-search {padding: 0; min-width: 150px; overflow: hidden; max-height: 302px;}
    .dropdown-menu > .menu-search .input-group {width:100%;}
    .dropdown-menu > .menu-search .input-group-addon {position: absolute; right: 10px; top: 0; z-index: 10; background: none; border: none; color: #666}
    .dropdown-menu > .menu-search .form-control {border: none!important; box-shadow: none!important; border-top: 1px solid #ddd!important;}
    .dropdown-list {display: block; padding: 0; max-height: 270px; overflow-y: auto;}
    .dropdown-list > li > a {display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.53846154; color: #141414; white-space: nowrap;}
    .dropdown-list > li > a:hover,
    .dropdown-list > li > a:focus {color: #1a4f85;text-decoration: none;background-color: #ddd;}

    .btn-toolbar .nav-title{float:left; display:inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 13px; font-weight: bolder; line-height: 18px; text-align: center; white-space: nowrap; vertical-align: middle;}
    .thWidth{width:100px !important;}
    </style><link rel='icon' href='/zentao/favicon.ico' type='image/x-icon' />
    <link rel='shortcut icon' href='/zentao/favicon.ico' type='image/x-icon' />
    <!--[if lt IE 10]>
    <script src='/zentao/js/jquery/placeholder/min.js?v=12.5.3'></script>
    <![endif]-->
</head>
<body>
<style>
    .picker-single .picker-selection-remove{z-index: 1000;}
    .picker-selection-single:after, .picker-multi.picker-focus .picker-selections:before{font-family: ZentaoIcon !important; content: '\f0d7' !important;}
</style>
<script>
    var chooseUsersToMail = '选择要发信通知的用户...';
    if($.fn.picker)
    {
        $(document).ready(function()
        {
            $(".picker-select[data-pickertype!='remote']").picker({chosenMode: true});
            $("[data-pickertype='remote']").each(function()
            {
                var pickerremote = $(this).attr('data-pickerremote');
                $(this).picker({chosenMode: true, remote: pickerremote});
            })
        });
    }
</script>
<header id='header'>
    <div id='mainHeader'>
        <div class='container'>
            <hgroup id='heading'>
                <h1 id='companyname' title='易软天创'><a href='/temp/index' >易软天创</a>
                </h1>
            </hgroup>
            <nav id='navbar'><ul class='nav nav-default'>
                <li  data-id='my'><a href="/index/ind2" ><span> 我的地盘</span></a></li>
                <li  data-id='product'><a href='/temp/product-index-no' >产品</a></li>
                <li class='active' data-id='project'><a href='/temp/project-index-no' class='active'>项目</a></li>
                <li  data-id='qa'><a href='/temp/product-showErrorNone-qa' >测试</a></li>
                <li class='divider'></li><li  data-id='ci'><a href='/temp/repo-browse' >集成</a></li>
                <li  data-id='doc'><a href='/temp/doc' >文档</a></li>
                <li  data-id='report'><a href='/temp/report-productSummary' >统计</a></li>
                <li class='divider'></li><li  data-id='company'><a href='/temp/company-browse' >组织</a></li>
                <li  data-id='admin'><a href='/temp/admin' >后台</a></li>
            </ul>
            </nav>
            <div id='toolbar'>
                <div id="userMenu">
                    <div id='searchbox'><div class='input-group'><div class='input-group-btn'><a data-toggle='dropdown' class='btn btn-link'><span id='searchTypeName'>项目</span> <span class='caret'></span></a><input type='hidden' name='searchType' id='searchType' value='project'  />
                        <ul id='searchTypeMenu' class='dropdown-menu'><li ><a href='javascript:$.setSearchType("bug");' data-value='bug'>Bug</a></li><li ><a href='javascript:$.setSearchType("story");' data-value='story'>需求</a></li><li ><a href='javascript:$.setSearchType("task");' data-value='task'>任务</a></li><li ><a href='javascript:$.setSearchType("testcase");' data-value='testcase'>用例</a></li><li class='selected'><a href='javascript:$.setSearchType("project");' data-value='project'>项目</a></li><li ><a href='javascript:$.setSearchType("product");' data-value='product'>产品</a></li><li ><a href='javascript:$.setSearchType("user");' data-value='user'>用户</a></li><li ><a href='javascript:$.setSearchType("build");' data-value='build'>版本</a></li><li ><a href='javascript:$.setSearchType("release");' data-value='release'>发布</a></li><li ><a href='javascript:$.setSearchType("productplan");' data-value='productplan'>产品计划</a></li><li ><a href='javascript:$.setSearchType("testtask");' data-value='testtask'>测试单</a></li><li ><a href='javascript:$.setSearchType("doc");' data-value='doc'>文档</a></li><li ><a href='javascript:$.setSearchType("caselib");' data-value='caselib'>用例库</a></li><li ><a href='javascript:$.setSearchType("testreport");' data-value='testreport'>测试报告</a></li></ul></div><input id='searchInput' class='form-control search-input' type='search' onclick='this.value=""' onkeydown='if(event.keyCode==13) $.gotoObject();' placeholder='编号(ctrl+g)'/></div><a href='javascript:$.gotoObject();' class='btn btn-link' id='searchGo'>GO!</a></div>
                    <ul id="userNav" class="nav nav-default">
                        <li><a class='dropdown-toggle' data-toggle='dropdown'><span class='user-name'>admin</span><span class='caret'></span></a><ul class='dropdown-menu pull-right'><li class="user-profile-item"><a href='/temp/my-profile' class=' no-role'><div class='avatar avatar bg-secondary avatar-circle'>A</div>
                            <div class="user-profile-name">admin</div><div class="user-profile-role"></div></a></li><li class="divider"></li><li><a href='/temp/my-profile' >个人档案</a>
                        </li><li><a href='/temp/my-changepassword' class='iframe' data-width='500'>更改密码</a>
                        </li><li class='divider'></li><li class='dropdown-submenu'><a href='javascript:;'>主题</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectTheme("default");' data-value='default'>禅道蓝（默认）</a></li><li ><a href='javascript:selectTheme("green");' data-value='green'>叶兰绿</a></li><li ><a href='javascript:selectTheme("red");' data-value='red'>赤诚红</a></li><li ><a href='javascript:selectTheme("purple");' data-value='purple'>玉烟紫</a></li><li ><a href='javascript:selectTheme("pink");' data-value='pink'>芙蕖粉</a></li><li ><a href='javascript:selectTheme("blackberry");' data-value='blackberry'>露莓黑</a></li><li ><a href='javascript:selectTheme("classic");' data-value='classic'>经典蓝</a></li></ul></li><li class='dropdown-submenu'><a href='javascript:;'>Language</a><ul class='dropdown-menu pull-left'><li class='selected'><a href='javascript:selectLang("zh-cn");'>简体</a></li><li ><a href='javascript:selectLang("zh-tw");'>繁體</a></li><li ><a href='javascript:selectLang("en");'>English</a></li><li ><a href='javascript:selectLang("de");'>Deutsch</a></li><li ><a href='javascript:selectLang("fr");'>Français</a></li><li ><a href='javascript:selectLang("vi");'>Tiếng Việt</a></li><li ><a href='javascript:selectLang("ja");'>日本語</a></li></ul></li><li class='custom-item'><a href='custom-ajaxMenu-project-index.html?onlybody=yes' data-toggle='modal' data-type='iframe' data-icon='cog' data-width='80%'>自定义导航</a></li><li class="divider"></li><li class='dropdown-submenu'><a data-toggle='dropdown'>帮助</a><ul class='dropdown-menu pull-left'><li><a href='tutorial-start.html' class='iframe' data-class-name='modal-inverse' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'>新手教程</a>
                        </li><li><a href='https://www.zentao.net/book/zentaopmshelp.html?fullScreen=zentao' class='open-help-tab' target='_blank' rel='noopener noreferrer'>手册</a>
                        </li><li><a href='/temp/misc-changeLog' class='iframe' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'>修改日志</a>
                        </li></ul></li>
                            <li><a href='/temp/misc-about' class='about iframe' data-width='1050' data-headerless='true' data-backdrop='true' data-keyboard='true' data-class='modal-about'>关于禅道</a>
                            </li><li class="divider"></li><li><a href='/temp/user-logout' >退出</a>
                            </li></ul></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id='subHeader'>
        <div class='container'>
            <div id="pageNav" class='btn-toolbar'></div>
            <nav id='subNavbar'><ul class='nav nav-default'>
                <li class=' ' data-id='index'><a href='/zentao/my/' >首页</a>
                </li>
                <li class=' ' data-id='calendar'><a href='/zentao/my-calendar.html' >日程</a>
                </li>
                <li class='divider'></li><li class=' ' data-id='task'><a href='/zentao/my-task.html' >任务</a>
            </li>
                <li class=' ' data-id='bug'><a href='/zentao/my-bug.html' >Bug</a>
                </li>
                <li class=' ' data-id='testtask'><a href='/zentao/my-testtask.html' >测试</a>
                </li>
                <li class=' ' data-id='story'><a href='/zentao/my-story.html' >需求</a>
                </li>
                <li class='divider'></li><li class=' ' data-id='myProject'><a href='/zentao/my-project.html' >项目</a>
            </li>
                <li class=' ' data-id='dynamic'><a href='/zentao/my-dynamic.html' >动态</a>
                </li>
                <li class='divider'></li><li class=' ' data-id='profile'><a href='/zentao/my-profile.html' >档案</a>
            </li>
                <li class=' active' data-id='changePassword'><a href='/zentao/my-changepassword.html' >密码</a>
                </li>
                <li class=' ' data-id='manageContacts'><a href='/zentao/my-managecontacts.html' >联系人</a>
                </li>
            </ul>
            </nav>
            <div id="pageActions"><div class='btn-toolbar'></div></div>
        </div>
    </div>
</header>

<main id='main'  >
    <div class='container'>
        <script src='/zentao/js/md5.js?v=12.5.3'></script>
        <style>
            .main-content{width: 500px; margin: 0 auto;}
        </style>
        <div id='mainContent' class='main-content'>
            <div class='main-header'>
                <h2><i class='icon-key'></i> 修改密码</h2>
            </div>
            <form method='post' target='hiddenwin'>
                <table align='center' class='table table-form w-320px'>
                    <tr>
                        <th class='rowhead thWidth'>用户名</th>
                        <td>admin<input type='hidden' name='account' id='account' value='admin'  />
                        </td>
                    </tr>
                    <tr>
                        <th>原密码</th>
                        <td><input type='password' name='originalPassword' id='originalPassword' value='' class='form-control' autocomplete='off' />
                        </td>
                    </tr>
                    <tr>
                        <th>新密码</th>
                        <td>
          <span class='input-group'>
            <input type='password' name='password1' id='password1' value='' class='form-control' onmouseup='checkPassword(this.value)' onkeyup='checkPassword(this.value)' placeholder='6位以上，包含大小写字母，数字。' autocomplete='off' />
            <span class='input-group-addon' id='passwordStrength'></span>
          </span>
                        </td>
                    </tr>
                    <tr>
                        <th>请重复密码</th>
                        <td><input type='password' name='password2' id='password2' value='' class='form-control' autocomplete='off' />
                        </td>
                    </tr>
                    <tr>
                        <td colspan='2' class='text-center form-actions'> <button type='submit' id='submit' class='btn btn-wide btn-primary'  data-loading='稍候...'>保存</button><a href='javascript:history.go(-1);' class='btn btn-back btn-wide' >返回</a></td>
                    </tr>
                </table>
                <div class='alert alert-info'>
                    安全策略 :       修改弱口令密码    </div>
            </form>
            <input type='hidden' name='verifyRand' id='verifyRand' value='877098681'  />
        </div>
        <script>passwordStrengthList = ["<span style='color:red'>\u5f31<\/span>","<span style='color:#000'>\u4e2d<\/span>","<span style='color:green'>\u5f3a<\/span>"];</script>
        <script>
            function checkPassword(password)
            {
                $('#passwordStrength').html(password == '' ? '' : passwordStrengthList[computePasswordStrength(password)]);
                $('#passwordStrength').css('display', password == '' ? 'none' : 'table-cell');
            }
        </script>
    </div><script>
    $.initSidebar();
</script>

    <iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='debugwin hidden'></iframe>

</main><footer id='footer'>
    <div class="container">
        <ul class='breadcrumb'><li><a href='/zentao/my/' >禅道</a>
        </li><li><a href='/zentao/my/' ><span> 我的地盘</span></a>
        </li><li class='active'>修改密码</li></ul>    <div id='poweredBy'>
        <small class='muted'><a href='https://api.zentao.net/goto.php?item=aiux' class='link-aiux' target='_blank'>Designed by <strong>艾体验</strong></a></small> &nbsp;
        <a href='https://www.zentao.net' target='_blank'><i class='icon-zentao'></i> 禅道12.5.3</a> &nbsp;
        <a href='https://api.zentao.net/goto.php?item=proversion&from=footer' target='_blank' id='proLink' class='text-important'>专业版 <i class='text-danger icon-pro-version'></i></a> &nbsp;           </div>
    </div>
</footer>
<div id="noticeBox"></div>
<script>
    /* Alert got messages. */
    needPing = false;
    $(function()
    {
        var windowBlur = false;
        if(window.Notification)
        {
            window.onblur  = function(){windowBlur = true;}
            window.onfocus = function(){windowBlur = false;}
        }
        setInterval(function()
        {
            $.get(createLink('message', 'ajaxGetMessage', "windowBlur=" + (windowBlur ? '1' : '0')), function(data)
            {
                if(!windowBlur)
                {
                    $('#noticeBox').append(data);
                    adjustNoticePosition();
                }
                else
                {
                    if(data)
                    {
                        if(typeof data == 'string') data = $.parseJSON(data);
                        if(typeof data.message == 'string') notifyMessage(data);
                    }
                }
            });
        }, 300000);
    })

</script>

<script>$(function()
{
    var scp  = $('[data-id="changePassword"] a');
    var sign = config.requestType == 'GET' ? '&' : '?';
    scp.attr('href', scp.attr('href') + sign + 'onlybody=yes').modalTrigger({width:500, type:'iframe'});
});
$(document).ready(function()
{
    var originalEncrypted = false;
    $('#originalPassword').change(function(){originalEncrypted = false});

    var password1Encrypted = false
    var password2Encrypted = false
    $('#password1').change(function(){password1Encrypted = false});
    $('#password2').change(function(){password2Encrypted = false});

    $('#submit').click(function()
    {
        var password         = $('input#originalPassword').val();
        var password1        = $('input#password1').val();
        var passwordStrength = computePasswordStrength(password1);
        var rand             = $('input#verifyRand').val();

        if($("form input[name=passwordStrength]").length == 0) $('#submit').after("<input type='hidden' name='passwordStrength' value='0' />");
        $("form input[name=passwordStrength]").val(passwordStrength);

        if(!originalEncrypted && password) $('input#originalPassword').val(md5(md5(password) + rand));
        originalEncrypted = true;

        var password1 = $('#password1').val();
        var password2 = $('#password2').val();
        if(password1 && !password1Encrypted) $('#password1').val(md5(password1) + rand);
        if(password2 && !password2Encrypted) $('#password2').val(md5(password2) + rand);
        password1Encrypted = true;
        password2Encrypted = true;
    });
});

</script>
</body>
</html>
